package com.woniuxy.pojo;

import java.io.Serializable; 
import java.util.Date;
import java.util.List;

import com.alibaba.fastjson.annotation.JSONField;

public class User implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1269405566910507405L;
	private Integer id ;
	private String telephone;
	private String password;
	private String realname;
	@JSONField(format = "yyyy-MM-dd")
	private Date birthday;
	private String headimg ;
	private Integer available;
	private Dept dept;
	
	
	
	public User() {
		// TODO Auto-generated constructor stub
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getTelephone() {
		System.out.println(telephone);
		return telephone;
	}
	public void setTelephone(String telephone) {
		System.out.println("setTelephone1");
		this.telephone = telephone;
	}
	public String getRealname() {
		return realname;
	}
	public void setRealname(String realname) {
		this.realname = realname;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public String getHeadimg() {
		return headimg;
	}
	public void setHeadimg(String headimg) {
		this.headimg = headimg;
	}
	public Integer getAvailable() {
		return available;
	}
	public void setAvailable(Integer available) {
		this.available = available;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	public String getPassword() {
		return password;
	}
	
	public void setPassword(String password) {
		this.password = password;
	}
	
	public Dept getDept() {
		return dept;
	}
	
	public void setDept(Dept dept) {
		this.dept = dept;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", telephone=" + telephone + ", password=" + password + ", realname=" + realname
				+ ", birthday=" + birthday + ", headimg=" + headimg + ", available=" + available + ", dept=" + dept
				+ "]";
	}
      
	
	
	
	
	 

}
